<!-- orders search -->

<div class="form-div">
  <form action="javascript:searchGoods()" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    
    <!-- time -->
    {$lang.order_mintime} <input type="text" id="idmintime" name="mintime" size="15" value="{$filter.mintime}" onclick="return showCalendar('idmintime', '%Y-%m-%d', false, false, 'idmintime');" /> 
    {$lang.order_maxtime} <input type="text" id="idmaxtime" name="maxtime" size="15" value="{$filter.maxtime}" onclick="return showCalendar('idmaxtime', '%Y-%m-%d', false, false, 'idmaxtime');" /> 

    <!-- status -->
    <select name="status"><option value="0">{$lang.order_status}</option>{html_options options=$filter.orderstatus}</select>
        
    <!-- 关键字 -->
    {$lang.keyword} <input type="text" name="keyword" size="15" value="{$filter.keyword}" />
    <input type="submit" value="{$lang.button_search}" class="button" />
  </form>
</div>



{literal}
<script language="JavaScript">
    function searchGoods()
    {
{/literal}
        {if $smarty.get.act neq "trash"}
        listTable.filter['cat_id'] = document.forms['searchForm'].elements['cat_id'].value;
        listTable.filter['brand_id'] = document.forms['searchForm'].elements['brand_id'].value;
        listTable.filter['intro_type'] = document.forms['searchForm'].elements['intro_type'].value;
		{/if}
{literal}
        listTable.filter['keyword'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
        listTable.filter['page'] = 1;

        listTable.loadList();
    }
</script>
{/literal}